﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using QuanLyKhachSan_BUS_WS.QLKS_DAL_WS;

namespace QuanLyKhachSan_BUS_WS
{
   public class XuLyPhieuThueBUS
   {
       #region Tìm 1 phiếu thuê theo mã
       public static CPHIEUTHUE TimPhieuThueTheoMaPhieu(int maPhong)
       {
           return XuLyPhieuThue.TimPhieuThueTheoMaPhieu(maPhong);
       }
       #endregion
       #region Tìm danh sách phiếu thuê theo mã
       public static List<CPHIEUTHUE> TimPhieuThueTheoMaKH(int maKH)
       {
           return DAO.XuLyPhieuThue.TimPhieuThueTheoMaKH(maKH);
       }
       #endregion
       #region Thêm 1 phiếu thuê
       public static Boolean ThemPhieuThue(CPHIEUTHUE pt)
       {
           return DAO.XuLyPhieuThue.ThemPhieuThue(pt);
       }
       #endregion
       #region Sửa thông tin phiếu theo mã khách hàng
       public static Boolean SuaTTPhieuThueTheoMaKH(int TT, int maKH)
       {
           return DAO.XuLyPhieuThue.SuaTTPhieuThueTheoMaKH(TT, maKH);
       }
       #endregion
       #region Sửa thông tin 1 phiểu
       public static Boolean SuaTTPhieuThue(CPHIEUTHUE pt, int maPhieu)
       {
           return DAO.XuLyPhieuThue.SuaTTPhieuThue(pt, maPhieu);
       }
       #endregion
       #region Xóa 1 phiếu
       public static Boolean XoaPhieuThue(int maP)
       {
           return DAO.XuLyPhieuThue.XoaPhieuThue(maP);
       }
       #endregion
       #region tìm 1 phiếu theo mã khách hàng
       public static CPHIEUTHUE TimMotPhieuThueTheoMaKH(int ma)
       {
           return XuLyPhieuThue.TimMotPhieuThueTheoMaKH(ma);
       }
       #endregion
       #region lay danh sach phieu thue
       public static DataTable danhSachPhieuThue()
       {
           DataTable dt = new DataTable();
            dt= XuLyPhieuThue.danhSachPhieuThue();
            return dt;
       }
       #endregion
   }
}
